package xinxin.com.AbstractFactoryPattern.Factory.FactoryDetail;

import xinxin.com.AbstractFactoryPattern.Factory.IFactory;
import xinxin.com.AbstractFactoryPattern.Sql.IDepartment;
import xinxin.com.AbstractFactoryPattern.Sql.IUser;
import xinxin.com.AbstractFactoryPattern.Sql.SqlDetail.SqlserverDepartment;
import xinxin.com.AbstractFactoryPattern.Sql.SqlDetail.SqlserverUser;

/**
 * @author ：史鑫鑫
 * @date ：Created in 2019/3/25 20:43
 */
public class SqlServerFactory implements IFactory {
    public IUser CreateUser() {
        return new SqlserverUser();
    }

    @Override
    public IDepartment CreateDepartment() {
        return new SqlserverDepartment();
    }
}
